from rest_framework.response import Response
from rest_framework.viewsets import ModelViewSet

from apps.goods.models import Brand
from apps.meiduo_admin.serializers.brands import BrandSerializer
from apps.meiduo_admin.utils import PageNum


class BrandView(ModelViewSet):
    """
    品牌管理
    """
    serializer_class = BrandSerializer
    queryset = Brand.objects.all()
    pagination_class = PageNum


